<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib uri="/WEB-INF/tld/luntup-util.tld" prefix="util"%> 
<%@taglib uri="/WEB-INF/tld/t-util.tld" prefix="utilx"%>
<util:session validate="true" name="Session2"/>
<%String strRootPath = request.getContextPath();%>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<html>
<head>
<style type="text/css">
div.clSlideMenu{ /* All slideMenu2 DIV elements */
	position:absolute;
	font-family:verdana,arial,helvetica;
	font-size:10px;
	overflow:hidden;
	height:22px;
}
a.clA0{ /* All top level links */
	color:white;
	font-size:12px;
	text-decoration:none;
	font-weight:bold;
}
a.clA1{ /* All sub level links */
	color:black;
	font-size:11px;
	font-weight:bold;
	text-decoration:none;
}
a.clA2{ /* All sub2 level links */
	color:navy;
	text-decoration:none;
}
a.clA3{ /* All sub3 level links */
	color:black;
	text-decoration:none;
}
a.clA4{ /* All sub4 level links */
	color:green;
	text-decoration:none;
}
/* NEEDED STYLES */
div.slideMenuBG{position:absolute; left:0; top:0; z-index:1}
div.slideMenuText{position:absolute; left:2px; top:2px; text-align:left; z-index:200}
#slideMenucont{position:absolute; width:120px; visibility:hidden;}
</style>

<script src="<c:url value="/menu/slidemenu.js"/>" type="text/javascript" ></script>
</head>
<body   bgcolor="#D0D4AF" marginheight="0" marginleft="0">
<img src="<%=strRootPath%>/resources/imagen/img/<c:out value="${imagenN}"/>" width="135px" height="60px"  alt="Loading..." border="0"><br>

<script type="text/javascript">

slideMenu = new createSlideMenu("slideMenu")

//Variables to set:
slideMenu.menuy=60 //The top placement of the menu.
slideMenu.menux=-30 //The left placement of the menu
slideMenu.useImages = 1 //Are you using images or not?
slideMenu.pxspeed=10 //The pixel speed of the animation
slideMenu.timspeed=10 //The timer speed of the animation
slideMenu.inset = -10 //How much the selected elements should pop to the left
slideMenu.arrow=0;

//Needed dummy classes
slideMenu.bgClass =	"slideMenuBG"
slideMenu.txtClass = "slideMenuText"

//Level properties - ALL properties have to be spesified in level 0
//This works the same way as the CM4 script (if you have seen it)

var directory = "<%=strRootPath%>/menu/";
slideMenu.level[0] = new slideMenu_makeLevel(
	left = 52,
	width = 138,
	height = 21,
	between = 5,
	className = "clSlideMenu",
	classNameA = "clA0",
	regImage = directory+"level0_regular__Right.gif",
	roundImg = directory+"level0_round.gif",
	roundImg2 = "",
	subImg = "",
	subRound= "")

    slideMenu.level[1] = new slideMenu_makeLevel(42,127,20,2,"clSlideMenu","clA1",directory+"level1_regular.gif",directory+"level1_round2.gif",directory+"level1_round.gif",directory+"level1_sub.gif", directory+"level1_sub_round.gif")
    slideMenu.level[2] = new slideMenu_makeLevel(33,118,18,2,"clSlideMenu","clA2",directory+"level2_regular.gif",directory+"level2_round2.gif",directory+"level2_round.gif", directory+"level2_sub.gif", directory+"level2_sub_round.gif")
    slideMenu.level[3] = new slideMenu_makeLevel(21,108,20,2,"clSlideMenu","clA3",directory+"level3_regular.gif",directory+"level3_round2.gif",directory+"level3_round.gif",directory+"level3_sub.gif",directory+"level3_sub_round.gif")
    slideMenu.level[4] = new slideMenu_makeLevel(10,107,19,2,"clSlideMenu","clA4",directory+"level4_regular.gif", directory+"level4_round2.gif",directory+"level4_round.gif",directory+"level4_sub.gif", directory+"level4_sub_round.gif")

//Image preload --- leave this
for(var i=0;i<=slideMenu.level;i++){
	var l = slideMenu.level[i]
	new preLoadBackgrounds(l.regImage,l.roundImg,l.roundImg2,l.subImg,l.subRound)
}
/**********************************************************************
mySlideMenu.makeMenu('TYPE','TEXT','LINK','TARGET')
************************************************************************/
//Menu 0 -----------------------
slideMenu.makeMenu('top','Home','home.html','main')

    
<util:present name="Session2" role="5">

<c:set var="aliasM" value=""> </c:set>
<c:if   test="${!empty accesoN}">
    <c:forEach items="${accesoN}" var="accesoN">
            <c:if test="${accesoN.idMenu.alias!=aliasM}"> 
                        slideMenu.makeMenu('top', '<c:out value="${accesoN.idMenu.nombre}"/>')                 
            </c:if>
            slideMenu.makeMenu('sub','<c:out value="${accesoN.nombre}"/>','<c:out value="${accesoN.pagina}"/>','main')
        <c:set var="aliasM" value="${accesoN.idMenu.alias}"> </c:set>   
    </c:forEach>    
</c:if>
     
</util:present>
slideMenu.makeMenu('top','Salir','logout.html','_top')
//Initiating the menu !!
slideMenu.init()
slideMenu.switchMenu(8)
</script>
<img src="<%=strRootPath%>/resources/imagen/img/<c:out value="${imagenN}"/>" width="120px" height="60px"  alt="Loading..." border="0"><br>

</body>
</html>
